package malus.shaofeng.com.beiwomusic.model;

import org.json.JSONObject;

/**
 * 故事评论的回复
 */
public class RefComment {
    private int comment_id;
    private String content;
    private User user;
    public void parseJSON(JSONObject object){
        this.comment_id=object.optInt("comment_id");
        this.content=object.optString("content");
        this.user=new User();
        JSONObject userObject = object.optJSONObject("user");
        if(userObject!=null){
            user.parseJSON(userObject);
        }
    }

    public int getComment_id() {
        return comment_id;
    }

    public void setComment_id(int comment_id) {
        this.comment_id = comment_id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
